package com.woniuxy.microstockserver.service;

import com.github.pagehelper.PageInfo;
import com.woniuxy.microstockserver.bean.AllocationBean;
import com.woniuxy.microstockserver.bean.EnterStockBean;
import com.woniuxy.microstockserver.bean.PageRequestBean;

/**
 * @author 赵雄伟
 * 调拨单service
 */
public interface IAllocationService {
    /**
     * 分页、分类、模糊查询所有调拨单
     * @param pageRequestBean
     * @param pageRequestBean,allocationBean
     * @return  PageInfo<AllocationBean>
     */
    PageInfo<AllocationBean> findAllAllcationBean(PageRequestBean pageRequestBean, AllocationBean allocationBean);

    /**
     * 新增调拨单
     * @param allocationBean
     * @return
     */
    Long saveAllocationBean(AllocationBean allocationBean);

    /**
     * 根据id查询调拨的详情
     * @param id
     * @return 包含商品信息的调拨单
     */
    AllocationBean findAllocationAndGoodsDetail(Long id);

    /**
     * 修改调拨单
     * @param allocationBean
     * @return
     */
    Long upadteAllocationBean(AllocationBean allocationBean);
}
